package edu.chl.jadetalk.db;

import edu.chl.jadetalk.core.User;
import java.util.List;

/**
 *
 * @author Daniel
 */
public interface IJpaController {
    
    public boolean persist(Object t);
    public boolean remove(Object t);
    public boolean update(Object t);
    public Object find(Long id, Class c);
    public List<Object> findAll(Class c);
    public int getCount(Class c);
    public User findUserByName(String userName);
    
}
